package cn.tedu.eguser1.base.response;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class JsResult {
    private Integer state;
    private String message;
    private Object data;

    public JsResult(StatusCode statusCode){
        this.state=statusCode.getStatus();
        this.message=statusCode.getMessage();

    }
    public JsResult(StatusCode statusCode,Object data){
        this.state=statusCode.getStatus();
        this.message=statusCode.getMessage();
        this.data=data;

    }


}
